package com.gg.header;

import com.gg.cookice.cookice;
import com.gg.util.BaseCommon;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLDecoder;
import java.net.URLEncoder;

public class getHeaderUser {

    public static String getHader(HttpServletResponse response, HttpServletRequest request, String name) throws IOException {
        try {
            return BaseCommon.decrypt(URLDecoder.decode((String) cookice.selectCookice(request,name)));
        }catch (Exception e){
            return null;
        }

    }
}
